{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "5000"
      ]
     },
     "execution_count": 1,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import json\n",
    "\n",
    "\n",
    "with open('id_list_merged.json', 'r') as f:\n",
    "    model_id_list = json.load(f)\n",
    "len(model_id_list)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "100%|██████████| 1079/1079 [29:34<00:00,  1.64s/it] \n"
     ]
    }
   ],
   "source": [
    "from utils import download_readme, dwonload_text_table, parse_markdwon, get_text_table\n",
    "from tqdm import tqdm\n",
    "# stard_idx, end_idx = 100, 2000\n",
    "# stard_idx, end_idx = 2000, 5000\n",
    "stard_idx, end_idx = 3921, 5000\n",
    "\n",
    "for model_id in tqdm(model_id_list[stard_idx:end_idx]):\n",
    "    dwonload_text_table(model_id)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "lccc",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
